package cn.cupk.logsystem.mapper;

import cn.cupk.logsystem.log.LogRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface LogMapper {
    @Insert("INSERT INTO logs (logger_name, level, message, timestamp) VALUES (#{loggerName}, #{level}, #{message}, #{instant})")
    void insertLog(LogRecord record);
}
